 {% extends 'Reservation/base.html' %}
{% block body_block %}
<div class="row clearfix">
		<div class="col-md-12 column">
			<h3 class="text-center text-primary">
				User Registeration
			</h3>
		</div>
	</div>
	<div class="row clearfix">
    <div class="col-md-4 column">
		</div>
		<div class="col-md-4 column">
            {% if registered %}
        <p>Thank you for registering.</p>

        <p><a href="/Reservation/login/">Login</a> when you are ready to rango.</p>
        {% else %}
        <form class="form-horizontal" id="user_form" method="post" action="/Reservation/register/">
            {% csrf_token %}
            {% for field in user_form.visible_fields %}
            {{ field.errors }}
            {{ field.help_text }}<br />

                {{ field }}

                <br />
            {% endfor %}

            {% for field in profile_form.visible_fields %}
            {{ field.errors }}
            {{ field.help_text }}<br />

                {{ field }}
             <br/>
            {% endfor %}

            <br />
            <!-- Provide a button to click to submit the form. -->
            <input class="btn btn-primary" type="submit" name="submit" value="Register"/>
        </form>
        {% endif %}
		</div>
		<div class="col-md-4 column">
		</div>
	</div>
{% endblock %}